package com.ruoyi.system.mapper;

import com.ruoyi.system.pojo.entity.Favorite;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AgoniFavoriteMapper {


    @Select("SELECT * FROM agoni_user_favorite WHERE user_id = #{userId} AND product_id = #{productId}")
    Favorite isFavorite(@Param("userId") Long userId, @Param("productId") Long productId);

    void addFavorite(Favorite favorite);
}
